system of equations to augmented matrix